package com.overto.gwt.hermes.client;

import com.google.gwt.json.client.JSONException;
import com.google.gwt.json.client.JSONValue;

/**
 * Small bug fix for GWT double (de)serialization in hosted mode.
 * Used instead of JSONNumber for int, short and long types serialization.
 */
public class JSONInteger extends JSONValue {

	private long value;
	
	public JSONInteger(long value) {
		this.value = value;
	}
	
	public String toString() throws JSONException {
		return Long.toString(value);
	}

}
